//
//  TopRankListVC.m
//  BigJoy
//
//  Created by Rowling on 2017/7/17.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "TopRankListVC.h"
#import "DesignerCell.h"
@interface TopRankListVC ()

@end

@implementation TopRankListVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUI];
}

-(void)setUI {
    [self.view addSubview:self.XMTableview];
    [self.XMTableview mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.top.equalTo(self.view);
    }];
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return 50;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    // top50
        DesignerCell * cell = [DesignerCell cellWithTableview:tableView];
        cell.rank = indexPath.row + 1;
        return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 90;
}

@end
